﻿#include <stdio.h>
void my_strcpy(char* dest, const char* src)
{
	while (*src != '\0') {
		*dest = *src;
		dest++;
		src++;
	}
	*dest = '\0';
}
int main()
{
	char arr1[] = "hello bite";
	char arr2[20] = { 0 };
	//将字符串	arr1中的内容拷⻉到字符串	arr2中
		my_strcpy(arr2, arr1);
	//打印字符串	arr2
		printf("%s\n", arr2);
	return 0;
}